#!/bin/sh

printf "test 0 for WordPath...\n"
printf "the grid is:\n"
printf "    ABC\n"
printf "    FED\n"
printf "    GHI\n"
printf "search string: ABCDEFGHI\n"
java WordPath 3 ABC FED GHI ABCDEFGHI
printf "\n"

printf "test 1 for WordPath...\n"
printf "the grid is:\n"
printf "    ABC\n"
printf "    FED\n"
printf "    GAI\n"
printf "search string: ABCDEA\n"
java WordPath 3 ABC FED GAI ABCDEA
printf "\n"

printf "test 2 for WordPath...\n"
printf "the grid is:\n"
printf "    ABC\n"
printf "    DEF\n"
printf "    GHI\n"
printf "search string: ABCD\n"
java WordPath 3 ABC DEF GHI ABCD
printf "\n"

printf "test 3 for WordPath...\n"
printf "the grid is:\n"
printf "    AA\n"
printf "    AA\n"
printf "search string: AAAA\n"
java WordPath 2 AA AA AAAA
printf "\n"

printf "test 4 for WordPath...\n"
printf "the grid is:\n"
printf "    ABABA\n"
printf "    BABAB\n"
printf "    ABABA\n"
printf "    BABAB\n"
printf "    ABABA\n"
printf "search string: ABABABABA\n"
java WordPath 5 ABABA BABAB ABABA BABAB ABABA ABABABBA
printf "\n"

printf "test 5 for WordPath...\n"
printf "the grid is:\n"
printf "    AAAAA\n"
printf "    AAAAA\n"
printf "    AAAAA\n"
printf "    AAAAA\n"
printf "    AAAAA\n"
printf "search string: AAAAAAAAAAA\n"
printf "suspended....\n"
#java WordPath 5 AAAAA AAAAA AAAAA AAAAA AAAAA AAAAAAAAAAA
printf "\n"

printf "test 6 for WordPath...\n"
printf "the grid is:\n"
printf "    AB\n"
printf "    CD\n"
printf "search string: AA\n"
java WordPath 2 AB CD AA
printf "\n"
